import React from 'react'
const home = React.lazy(() => import('../pages/home'))
const source = React.lazy(() => import('../pages/source'))
const world = React.lazy(() => import('../pages/world'))
const layout = React.lazy(() => import('../pages/layout'))
const signup = React.lazy(() => import('../pages/signup'))
const list = React.lazy(() => import('../pages/list'))
const listAdd = React.lazy(() => import('../pages/listAdd'))
const detail = React.lazy(() => import('../pages/detail'))
const routes = [{
	path: '/',
	element: layout,
	children: [{
		path: '/',
		element: home
	},{
		path: '/source',
		element: source
	},{
		path: '/world',
		element: world
	}, {
		path: '/table/list',
		element: list
	},{
		path: '/table/add',
		element: listAdd
	}]
}, {
	path: 'signup',
	element: signup
},{
	path: '/detail/:id',
	element: detail
}]


export default routes